package Users;

import operation.*;

import java.util.Scanner;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-12-23
 * Time:20:44
 */
public class Nomal extends User{
    private String name;
    public Nomal(String name) {
        super(name);
        this.name = name;
        this.ioPearations = new IOPearation[]{
                new ExitOpearation(),
                new FindOpearation(),
                new BorrowOpearation(),
                new ReturnOpearation(),
                new DisplayOpaeration()
        };
    }

    @Override
    public int  menu(){
        System.out.println("=================普通菜单===========================");
        System.out.println("hello" + this.name + "欢迎来到图书管理小练习");
        System.out.println("1.查找图书!");
        System.out.println("2.借阅图书!");
        System.out.println("3.归还图书!");
        System.out.println("4.显示图书!");
        System.out.println("0.退出系统!");
        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;
    }
}
